package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_user_level_money_log")
public class UserLevelMoneyLog {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 推广用户ID
    private Long userId;

    // 子级用户ID
    private Long childUserId;

    // 编号
    private Long drawSn;

    //金额
    private BigDecimal money;

    //创建时间
    private Integer createTime;

    //类型：20.达人推广返利，21.达人推荐返利，31.代理推荐返利，32.用户提现代理返利
    private Integer type;

}
